import { defineConfig } from 'vitest/config';

export default defineConfig({
  test: {
    globals: true,
    setupFiles: './configs/vitest-setup.ts',
    environment: 'jsdom',
    include: ['src/**/*.test.{ts,tsx}'],
    exclude: ['**/node_modules/**', '**/dist/**'],
    coverage: {
      include: ['src/**/*.{ts,tsx}'],
      exclude: [
        '**/*.test.{ts,tsx}',
        '**/node_modules/**',
        '**/dist/**',
        '**/*.d.ts*',
        'src/index.ts',
        'src/encrypts/index.ts',
        'src/serializer/index.ts',
        'src/datas/index.ts',
        'src/datas/storage/index.ts'
      ]
    }
  }
});
